<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="WEB-INF/struts-html" 		prefix="html"%>
<%@ taglib uri="WEB-INF/struts-logic" 		prefix="logic"%>
<%@ taglib uri="WEB-INF/struts-bean" 		prefix="bean"%>
<%@ taglib uri="WEB-INF/struts-nested.tld" 	prefix="nested"%>
<%@ taglib uri="WEB-INF/displaytag" 		prefix="display"%>
<%@ page import="java.util.*"%>
<%@ page import="java.lang.*"%>
<%@page import="pe.com.certicom.ittsa.model.bean.*"%>  
<%@page import="pe.com.certicom.ittsa.control.action.*"%>
<%@page import="pe.com.certicom.ittsa.control.form.*"%>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>La prueba de ivonne</title>
<script language="javascript" type="text/javascript">

var es="";

<%

String ticket=(String)request.getParameter("ticket");
String estado=(String)request.getParameter("estado");

System.out.println("El ticket es: "+ticket);
System.out.println("El estado es: "+estado);
%>
es='<%=estado%>';

function enviar(){	
if(es=='AUTORIZADO'){
	document.getElementsByName("method")[0].value="27";
	document.forms[0].submit();	}
	
else{
	document.getElementsByName("method")[0].value="28";
	document.forms[0].submit();	}
	
}
</script>
	
</head>
<body onload="enviar();">
<div >
<html:form action="/CompraPasaje.do" method="POST" >
<input type="hidden" name="method"/>
<input type="hidden" name="ticket"/>
</html:form>
</div>
</body>
</html>